home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1994 November / macformat-018.iso / Comms Spectacular / Mansion9Install#1 Folder / Mansion BBS ƒ / Mansion Data / Scripts / BBS Script next >
Encoding:
Text File  |  1992-09-06  |  2.8 KB  |  147 lines  |  [TEXT/QED1]

  1. ;
  2. ;    BBS List Script
  3. ;    For Mansion 8 BBS
  4. ;
  5. ;    By Mark Toland
  6. ;    Zoo System Mac BBS
  7. ;    Fidonet 290/2
  8. ;    515-279-3073  9600 v.32 v.42bis
  9. ;
  10. ;  •••• READ THE COMMENTS AT THE END OF THIS SCRIPT ABOUT FILE CREATION
  11. ;
  12. MOVE @LIMIT,&250
  13. LOADUSERINFO
  14. LIMIT &250
  15. MOVE 2,&80
  16. SPACES &80
  17. ; &80 HOLDS 2 SPACES
  18. /ONE
  19. PRINT
  20. PRINT
  21. PRINT
  22. PRINT ::::::::::::::::::::::::::::::::::::::::::::
  23. PRINT :            Users BBS Listing             :
  24. PRINT :  A. Add a BBS number to the BBS listing. :
  25. PRINT :  V. View the current BBS listing.        :
  26. PRINT :  Q. Quit back to the BBS.                :
  27. PRINT ::::::::::::::::::::::::::::::::::::::::::::
  28. PRINT
  29. PRINT
  30. DRAW Enter your choice:
  31. INPUT 1,&0
  32. IF &0,=,A
  33.     FORWARD /ADD
  34. ENDIF
  35. IF &0,=,V
  36.     DISPLAY HD 60:Mansion BBS ƒ:Mansion Data:Misc Data:BBSList
  37.     REVERSE /ONE
  38. ENDIF
  39. IF &0,=,Q
  40.     END
  41. ENDIF
  42. IF &0,<>,Q
  43.     REVERSE /ONE
  44. ENDIF
  45. ;
  46. /ADD
  47. PRINT
  48. PRINT Make sure you have Viewed the current BBS listing to make sure
  49. PRINT the BBS you wish to add is not already listed.
  50. PRINT
  51. DRAW Do you wish to add a BBS system to the BBS list now (Y/N)?
  52. INPUT 1,&0
  53. IF &0,=,N
  54.     END
  55. ENDIF
  56. IF &0,<>,Y
  57.     REVERSE /ONE
  58. ENDIF
  59. PRINT
  60. PRINT
  61. PRINT Enter the phone number of the BBS. You have 12 characters.
  62. DRAW Enter with the format of XXX-XXX-XXXX ->
  63. INPUT 12,&1
  64. PRINT
  65. DRAW Enter the MAX baud rate for the BBS ->
  66. INPUT 8,&2
  67. PRINT
  68. PRINT Enter the name of the BBS.
  69. DRAW (24 char. max) ->
  70. INPUT 24,&3
  71. ;
  72. PRINT
  73. PRINT What computer does the BBS run on?
  74. DRAW (10 chars max) ->
  75. INPUT 10,&4
  76. PRINT
  77. PRINT Enter any features about the BBS System
  78. PRINT (You have 60 chars. Max)
  79. INPUT 60,&5
  80. ;
  81. PRINT
  82. PRINT You have entered the following...
  83. DRAW BBS Phone number ->
  84. PRINT &1
  85. DRAW Baud Rate ->
  86. PRINT &2
  87. DRAW Board Name ->
  88. PRINT &3
  89. DRAW Computer Type ->
  90. PRINT &4
  91. DRAW Comments->
  92. PRINT &5
  93. DRAW Board added by ->
  94. PRINT &280
  95. ;
  96. /TWO
  97. PRINT
  98. DRAW Do you wish to record the above info to the BBS list (Y/N)?
  99. INPUT 1,&9
  100. IF &9,=,N
  101.     REVERSE /ONE
  102. ENDIF
  103. IF &9,<>,Y
  104.     REVERSE /TWO
  105. ENDIF
  106. ;
  107. PRINT
  108. PRINT Processing your data...
  109. ; OK lets try to format things a little bit
  110. MOVE Phone # ,&21
  111. CONCAT &21,&1
  112. MOVE Max Baud Rate -> ,&22
  113. CONCAT &22,&2
  114. MOVE   Computer Type -> ,&24
  115. CONCAT &24,&4
  116. MOVE   ,&30
  117. CONCAT &22,&80
  118. CONCAT &22,&30
  119. CONCAT &22,&24
  120. MOVE Comments:,&25
  121. CONCAT &25,&5
  122. MOVE Entered by -> ,&26
  123. CONCAT &26,&280
  124. MOVE @DATE,&31
  125. ;
  126. PRINT Saving...
  127. ; OK lets write the results to the BBSList file
  128. ;                                  ^^^^^^^
  129. ; •••• Edit the following 2 lines as to the location of your Business card file
  130. OUTPUT HD 60:Mansion BBS ƒ:Mansion Data:Misc Data:BBSList
  131. EXISTS HD 60:Mansion BBS ƒ:Mansion Data:Misc Data:BBSList,&50
  132. IF &50,=,0
  133.     WRITE &51
  134. ENDIF
  135. APPEND &3
  136. APPEND &21
  137. APPEND &22
  138. APPEND &25
  139. APPEND &26
  140. APPEND &31
  141. APPEND ------------------------------------------------
  142. ;
  143. CLOSE
  144. PRINT Thanks for adding to the BBS Listing!
  145. REVERSE /ONE
  146. END